New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUGFIX: Support nested fluid variables by using the original fluid method #1478
Conversation
|
Please provide a proper PR title and import the TYPO3Fluid namespaces (using an alias, if needed). |
…thod Neos.FluidAdaptor blocks the nested-variables-feature of fluid by overriding the implementing method. This change relies on the parent method for path resolving but still sets ObjectAccess as default accessor and supports bool casting and the TemplateObjectAccessInterface interface. All other parts are untouched. As a side effect you can now use the $accessors parameter of the gtePath method is now usable. fixes: neos#1477
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good codewise. Now if we could have a test to verify the fix, that would be great.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! |
Though stale, still relevant. |
This issue has been automatically closed because it has not had activity for some time. But that does not need to be final. If you find the time to work on it, feel free to open it again. Thanks again for your contributions! |
Would like to update this and sometime actually get this in. |
🤞 this should pass with the added test and then this is IMO good to go - finally Edit: Of course it doesn't pass - |
I still think this small regex fix could have landed in Fluid - it still doesn't allow deeply nested variables, but the case in the test should be supported. |
ping @kitsunet @kdambekalns |
Ah, probably because the patch comes from a 5.0 branch on th fork but the base was changed. So this is correct, but highly confusing. 👍 |
Rebased in #2444 to keep the history clean. If we had |
With this patch it's possible to use the fluid variable nesting feature as well as a specific accessor per element on the path.
How to use it
Create a fluid template with nested variables that access an array value:
Assign an array and the two keys: